package com.wdc.application;

import java.util.concurrent.*;
import java.util.concurrent.locks.Lock;

public class CyclicBarrierDemo {
    public static void main(String[] args) {

        //集齐七颗龙珠召唤神龙


        Callable<Boolean> task = () ->{

            System.out.println("召唤神龙成功");
            return true;

        };




        FutureTask<Boolean> futureTask = new FutureTask<>(task);


        CyclicBarrier cyclicBarrier = new CyclicBarrier(7,futureTask);






    }
}
